<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('Проверка');
?>
<?= $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
    <?= $this->headMeta(); ?>
    <?= $this->headTitle(); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/main.css'); ?>
    <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/reset.css'); ?>
    
    <? if (Zend_Controller_Front::getInstance()->getRequest()->getActionName() == 'image' && 
           Zend_Controller_Front::getInstance()->getRequest()->getControllerName() == 'users' ): ?>
        <? $this->headScript()->appendFile($this->baseUrl().'/js/jquery-1.7.2.min.js'); ?>
        <? $this->headScript()->appendFile($this->baseUrl().'/js/jCrop.js'); ?>
        <?= $this->headScript()->appendFile($this->baseUrl().'/js/jquery.Jcrop.js'); ?>
        <? $this->headLink()->appendStylesheet($this->baseUrl().'/styles/jquery.Jcrop.css'); ?>
    <? endif; ?>
    
    <?= $this->headLink()->appendStylesheet($this->baseUrl().'/styles/typography.css'); ?>
    <link rel="shortcut icon" type="image/x-icon" href="<?= $this->baseUrl();?>/images/favicon.ico">
</head>
<body>
<!--Header-->
	<header>
		<!--Logo-->
		<div id="logo">
			<a class="image_s" href="#">
                            <img src= "<?=$this->baseUrl(); ?>/images/logo.png" alt="" />
			</a>
		</div>
		<!--Search-->
		<div class="header_search">
			<form action="">
				<input type="text" name="search" placeholder="Издөө" id="ac">
				<input type="submit" value="">
			</form>
		</div>
	</header>
<!--Dreamworks Container-->
<div id="dreamworks_container">
    <!--Primary Navigation-->
    <? if(Zend_Controller_Front::getInstance()->getRequest()->getControllerName() != 'error') :?>
        <?= $this->render('mainmenu.phtml'); ?>
        <?= $this->render('section.phtml'); ?>
    <? else :?>
        <?= $this->layout()->content; ?> 
    <? endif; ?>
</div>
</body>
</html>